package club.itstudio.itouc.controller

import club.itstudio.itouc.core.util.Resource
import club.itstudio.itouc.core.util.Result
import club.itstudio.itouc.core.util.ResultUtil
import club.itstudio.itouc.entity.JwSession
import club.itstudio.itouc.service.JwOps
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.Cookie
import javax.servlet.http.HttpServletResponse

@RestController
class Login (val resource: Resource,
             val jwOps: JwOps){

    /**
     * PC端登录界面
     */
    @GetMapping("/login")
    fun loginIndex(): String {
        return resource.template("user/login.html")
    }
}